package book;

/**
 * Created with IntelliJ IDEA.
 * Description:
 */
public class Booklist {
    private int brrownum;
    private Book[] books=new Book[10]; //表示可以放11本书
    public Booklist() {
        this.books[0]=new Book("三国演义","罗贯中",20,"小说");
        this.books[1]=new Book("红楼梦","曹雪芹",20,"小说");
        this.books[2]=new Book("西游记","吴承恩",20,"小说");
        this.brrownum=3;
    }

    public int getBrrownum() {
        return brrownum;
    }

    public void setBrrownum(int brrownum) {
        this.brrownum = brrownum;
    }

    public Book getBook(int pos) {
        return books[pos];
    }

    public void setBook(Book books,int currentNum) {
        this.books[currentNum] = books;
    }
}
